<%@page import="helpers.UrlHelper"%>
<%@page import="entities.SiteConfig"%>
<%
SiteConfig siteConfig = (SiteConfig) request.getAttribute("config");
String title = (String) request.getParameter("title");
String description = (String) request.getParameter("description");
String keywords = (String) request.getParameter("keywords");
String ogSiteName = (String) request.getParameter("ogsite_name");
String ogTitle = (String) request.getParameter("ogtitle"); 
String ogUrl = (String) request.getParameter("ogurl");
String ogImage = (String) request.getParameter("ogimage");
String ogDescription = (String) request.getParameter("ogdescription");

if (title == null && siteConfig != null)
	title = siteConfig.getTitle();

if (description == null && siteConfig != null)
	description = siteConfig.getMetaDescription();

if (keywords == null && siteConfig != null)
	keywords = siteConfig.getMetaKeywords();

if (ogSiteName == null && siteConfig != null)
	ogSiteName = siteConfig.getSiteName();

if (ogTitle == null && siteConfig != null)
	ogTitle = siteConfig.getTitle();

if (ogDescription == null && siteConfig != null)
	ogDescription = siteConfig.getMetaDescription();

if (ogUrl == null)
	ogUrl = UrlHelper.getServerUrl(request);

if (ogImage == null)
	ogImage = UrlHelper.getServerUrl(request) + "/images/logo.png";

%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=siteConfig.getHttpCharacterSet().toUpperCase()%>" />

<meta name="description" content="<%=description.replaceAll("[\"\']+", "")%>" >
<meta name="Keywords" content="<%=keywords.replaceAll("[\"\']+", "")%>" >
<meta itemprop="name" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" />    
<meta itemprop="description" content="<%=ogDescription %>" />
<meta property="og:site_name" content="<%=ogSiteName %>" >
<meta property="og:title" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" >
<meta property="og:url" content="<%=ogUrl%>" >
<meta property="og:image" content="<%=ogImage%>" >
<meta property="og:description" content="<%=ogDescription %>" >
<title><%=title%></title>

<link href="/templates/showdomain/css/bootstrap.css" rel="stylesheet">
<link href="/templates/showdomain/css/style.css" rel="stylesheet">
<script type="text/javascript" src="/templates/showdomain/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/templates/showdomain/js/bootstrap.js"></script>
</head>
<body>
<!-- header BEGIN -->
<header id="header">
	<div class="container header-ex">
		<div class="row">
			<div class="span3 logo">
				<a href="/"><img src="/templates/showdomain/images/logo.png"></a>
			</div>
		</div>
		<nav id="menu" class="full-right">
			<ul>
				<li><a href="/">Home</a></li>
				<li><a href="/checkip">CheckIp</a></li>
				<li><a href="/checkwhois">Whois</a></li>
				<li><a href="/reverseip">Reverse IP</a></li>
				<li><a href="/keyword-ranking">Keywords</a></li>
			</ul>
		</nav>
	</div>
</header>
<!-- header END -->

<!-- container BEGIN -->
<section id="container">
	<div class="container">